<!DOCTYPE html>
<html lang="zh-cn">

    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>自定义标注</title>
        <link rel="stylesheet" type="text/css" href="./weblinkcss/style.css">
        <link rel="stylesheet" type="text/css" href="./weblinkcss/highlight.css">
        <script>
            var _hmt = _hmt || [];
            (function () {
                var hm = document.createElement("script");
                hm.src = "//hm.baidu.com/hm.js?767e3ea52a6b4f3c656cdd4119c87e62";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();
        </script>
    </head>
    <script src="./weblinkjs/pfcUtils.js">
    </script>
    <script src="./weblinkjs/dimension.js">
    </script>


    <body vlink="purple" onload="init()">

        <div class="body_container">
            <div id="header">
                <div class="site-name">
                    <a id="logo" href=".">Creo二次开发工具</a>
                    <p class="description">本页功能必须在Creo内置窗口打开才能使用。仅在win10 X64，Creo 2.0 M060 X64环境测试通过。</p>
                </div>
            </div>
        </div>
        <div class="body_container">
            <div class="post">
                <h1 class="post-title">当前打开的模型为：</h1>
                <br />
                <h2 class="post-title" id="currentModel">--</h2>
            </div>

            <div class="post">
                <h1 class="post-title">自定义标注</h1>
                <br />
                <br />
                <table border="1">
                    <tr>
                        <th>基本尺寸d</th>
                        <th>上偏差ES</th>
                        <th>下偏差EI</th>
                        <th>开始标注</th>
                    </tr>
                    <tr align="center">
                        <td>1&lt;d≤30</td>
                        <td>0.02</td>
                        <td>0</td>
                        <td><button class="blue" onclick="CreateDiameter(1);"
                                style="width:280px">标注直径：d<sup>+0.02</sup><sub
                                    style=" margin:0 0 0 -20px;">0</sub></button></td>
                    </tr>
                    <tr align="center">
                        <td>30&lt;d≤100</td>
                        <td>0.2</td>
                        <td>-0.1</td>
                        <td><button class="blue" onclick="CreateDiameter(2);"
                                style="width:280px">标注直径：d<sup>+0.2</sup><sub
                                    style=" margin:0 0 0 -20px;">-0.1</sub></button></td>
                    </tr>
                    <tr align="center">
                        <td>100&lt;d</td>
                        <td>0.2</td>
                        <td>0</td>
                        <td><button class="blue" onclick="CreateDiameter(3);"
                                style="width:280px">标注直径：d<sup>+0.2</sup><sub
                                    style=" margin:0 0 0 -15px;">0</sub></button></td>
                    </tr>
                    <tr align="center">
                        <td>100&lt;d</td>
                        <td>0.2</td>
                        <td>0</td>
                        <td><button class="blue" onclick="CreateDiameter(4);" style="width:280px">标注直径：d±0.2</button>
                        </td>
                    </tr>
                </table>
                <p>点击标注直径按钮后双击圆弧再中键点击空白处完成直径的标注,程序将自动添加上述表格的公差。</p>
                <br />
                <button class="blue" onclick="HorizonArrange();" style="width:280px">水平对齐标注</button>
                <br />
                <p>首先在工程图中选择所有需要对齐的尺寸，之后点击本按钮，再在工程图中左键点击鼠标选择水平摆放坐标。</p>
                <br />
                <button class="blue" onclick="VerticalArrange();" style="width:280px">垂直对齐标注</button>
                <br />
                <p>首先在工程图中选择所有需要对齐的尺寸，之后点击本按钮，再在工程图中左键点击鼠标选择垂直摆放坐标。</p>
                <br />
            </div>
            <div class="post">
                <h1 class="post-title">尺寸导出</h1>
                <br />
                <br />
                <button class="blue" onclick="Dims2Csv();" style="width:280px">下载csv文件</button>
                <br />
                <p>点击生成包含所有尺寸信息的表格。</p>
            </div>
            <!-- <div class="post">
                <h1 class="post-title">注解遍历</h1>
                <br />
                <br />
                <button class="blue" onclick="Notevisit();" style="width:280px">导出注解</button>
                <br />
                <p>点击生成包含所有尺寸信息的表格。</p>
            </div> -->
        </div>

        <div id="footer">
            <div class="footer-info">
                <p>本工具由胡迪开发</p>
                <p>欢迎访问我的博客：<a target="_blank" href="http://www.hudi.site">http://www.hudi.site</a></p>

                <p> Theme by
                    <a rel="nofollow" target="_blank" href="https://github.com/chaooo/hexo-theme-BlueLake"> BlueLake</a>
                </p>
            </div>
        </div>
    </body>

</html>